'use strict';

function formatDate(d) {
  const M = d.getMonth() +1;
  const D = d.getDate();

  const h = d.getHours();

  const m = d.getMinutes();

  return `${M}-${D} ${h}:${m}`;
}

module.exports = {
  formatDate,
};